package com.goodluck.goodluckim.ui.msg.viewholder;

import com.chad.library.adapter.base.util.ProviderDelegate;
import com.goodluck.goodluckim.sdk.constant.MsgType;
import com.goodluck.goodluckim.sdk.msg.MsgViewHolderFactory;

/**
 * 消息项展示ViewHolder工厂类。
 */
public class DefaultMsgViewHolderFactory extends MsgViewHolderFactory {
    /**
     * 添加viewholder
     *
     * @param providerDelegate
     */
    @Override
    public void registerProviders(ProviderDelegate providerDelegate) {
        addItemType(MsgType.TEXT, new MsgViewHolderText(), providerDelegate);
        addItemType(MsgType.IMAGE, new MsgViewHolderImage(), providerDelegate);
    }
}
